package com.yylending.las.lending.quota.credit;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.content.Loader;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Unbinder;
import com.yyfax.infrastructure.mvp.Presenter;
import com.yylending.las.R;
import com.yylending.las.base.BaseFragment;

/**
 * 征信查询受限.
 * Created by ying_he on 2017/9/6.<br>
 * Copyright  2017 www.yylending.com. All Rights Reserved.<br><br>
 */

public class CreditAuthLimitedFragment extends BaseFragment {

	Unbinder mUnbind;

	public static BaseFragment newInstance(int sectionNumber) {
		BaseFragment fragment = new CreditAuthLimitedFragment();
		Bundle args = new Bundle();
		args.putInt(ARG_SECTION_NUMBER, sectionNumber);
		fragment.setArguments(args);
		return fragment;
	}

	@Nullable
	@Override
	public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.fragment_credit_auth_limited, null);
		mUnbind = ButterKnife.bind(this, view);
		return view;
	}

	@Override
	public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
		super.onViewCreated(view, savedInstanceState);
	}

	@OnClick(R.id.confirm_btn)
	public void confirmBtnClicked(View v){
		getActivity().finish();
	}

	@Override
	public void onDestroyView() {
		super.onDestroyView();
		mUnbind.unbind();
	}

	@Override
	public void onLoadFinished(Loader<Presenter> loader, Presenter data, int placeholder) {

	}

	@Override
	public Loader<Presenter> onCreateLoader(int id, Bundle args) {
		return null;
	}
}
